﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace SimplePlanner.Entity
{
    public class Index
    {
        public string code;
        public List<Period> periods;
        public Index() 
        {
            periods = new List<Period>();
        }
        public Index(string _code)
        {
            periods = new List<Period>();
            code = _code;
        }

        public void addPeriod(Period p)
        {
            periods.Add(p);
        }
    }
}
